package com.microframework.base.data.config;

import com.microframework.base.data.config.base.BaseConnectionConfig;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class DatabaseConnectionConfig extends BaseConnectionConfig {
    public enum DbType {
        MYSQL, POSTGRESQL, ORACLE, SQLSERVER, H2
    }
    
    private DbType dbType;
    private String url;
    private String username;
    private String password;
    private String driverClassName;
    private String query;
    private String schema;
    private String table;
    private int initialSize = 1;
    private int maxActive = 10;
    private int minIdle = 1;
}